package com.bbcloud.dao;

import com.bbcloud.pojo.Activity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ActivityMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(Activity record);

    int insertSelective(Activity record);

    Activity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Activity record);

    int updateByPrimaryKey(Activity record);

    List<Activity> selectByUserIdAndDayId(@Param("userId")String userId, @Param("dayId")String dayId);

    int deleteByActivityId(@Param("activityId")String activityId);
}